package com.lixy.demo.spring4_highlight.ch2.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

	public static void main( String[] args ) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext( EventConfig.class );
		DemoPublisher publisher = context.getBean( DemoPublisher.class );
		publisher.publish( "hello applicaiton event" );
		context.close();
	}
	
}
